package com.demo.springcloud.service;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author chenyuan
 * @date 2020/12/24 15:35
 */
@Service
public interface AccountService {
	/**
	 * 扣减账户余额
	 */
	int decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
